import os
import cv2

img = cv2.imread(os.path.join('../data', 'yt.jpg'))
print(img.shape)
print(img)
# img = cv2.resize(img, (500, 500))
# print(img.shape)
# 截取图片 高 150开始 440结束 宽 90 开始 320结束
# crop_img = img[150:440, 90:320]
crop_img = img[180:600, 150:680]

cv2.imshow('img', img)
cv2.imshow('crop_img', crop_img)
cv2.waitKey(0)
